<?php
/**
* 汉字处理
* Created by PhpStorm.
* User: 小威
* Date: 2020/04/23
* Time: 15::04
*/
namespace Util\Common;

use Mall\Framework\Core\ErrorCode;
Use Mall\Framework\Core\ResultWrapper;

use Util\PinYin\PinYin;

class ChineseCharacter
{
    /**
     * 获取汉字拼音首字母
     * @param $zhString
     * @return string
     */
    function getInitials($zhString)
    {
        return PinYin::convertInitalPinyin($zhString);
    }

}